import config from "../configs/configs.js";
import core from "../core/http-request";
class Service {
  constructor(url) {
    this.url = url;
  }
  save(params) {
    return core.httpRequest(this.url, params, "POST");
  }
  query(params) {
    return core.httpRequest(this.url, params, "GET");
  }
}

export default Service;
